// Mod 缩写
let MOD = (domain, id, x) => (x ? `${x}x ` : "") + (id.startsWith('#') ? '#' : "") + domain + ":" + id.replace('#', '')
let CR = (id, x) => MOD("create", id, x)
let CRA = (id, x) => MOD("createaddition", id, x)
let TC = (id, x) => MOD("tconstruct", id, x)
let MC = (id, x) => MOD("minecraft", id, x)
let KJ = (id, x) => MOD("kubejs", id, x)
let FD = (id, x) => MOD("farmersdelight", id, x)
let VC = (id, x) => MOD("vanillacookbook", id, x)
onEvent('recipes', event => {

//意面搅拌
event.custom({
  "type": "create:mixing",
  "ingredients": [
    {
      "item": "minecraft:wheat"
    },
	{
      "item": "minecraft:wheat"
    },
    {
      "fluid": "minecraft:water",
      "nbt": {},
      "amount": 500
    }
  ],
  "results": [
    {
      "item": FD('raw_pasta')
    }
  ]
})
//冰淇淋搅拌
event.custom({
  "type": "create:mixing",
  "ingredients": [
    {
      "item": "minecraft:sugar"
    },
	{
      "item": "minecraft:snowball"
    },
    {
      "fluid": "minecraft:milk",
      "nbt": {},
      "amount": 250
    }
  ],
  "results": [
    {
      "item": VC('ice_cream')
    }
  ]
})
//奶瓶注入
event.custom({
  "type": "create:filling",
  "ingredients": [
    {
      "item": MC('glass_bottle')
    },
    {
      "fluidTag": "forge:milk",
      "amount": 250
    }
  ],
  "results": [
    {
      "item": "farmersdelight:milk_bottle"
    }
  ]
})
//奶瓶倒空
event.custom({
  "type": "create:emptying",
  "ingredients": [
    {
      "item": "farmersdelight:milk_bottle"
    }
  ],
  "results": [
    {
      "item": "minecraft:glass_bottle"
    },
    {
      "fluid": "minecraft:milk",
      "amount": 250
    }
  ]
})



})